class CreateCompanies < ActiveRecord::Migration
  def self.up
    create_table :companies do |t|
      t.column :name,     :string, :limit => 60, :null => false
      t.column :address,  :string, :limit => 100
      t.column :phone,    :string, :limit => 20, :null => false
      t.column :fax,      :string, :limit => 20
      t.column :email,    :string
      t.column :postcode, :string, :limit => 6
      t.column :website,  :string      
    end
  end

  def self.down
    drop_table :companies
  end
end

